package cn.yzfy.common.model;

import cn.yzfy.common.base.vo.BaseIdAndTimeVO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.io.Serial;

/**
 * @author 一朝风月
 * @date 2025/9/11 20:05
 * @Code 面向注解面向卿，终无解释再无你
 * @description 用户角色模型
 */

@EqualsAndHashCode(callSuper = false) @Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class UserRoleModel extends BaseIdAndTimeVO {

    @Serial
    private static final long serialVersionUID = 7549742452055562203L;

    /**
     * 图标
     */
    @Schema(description = "图标")
    private String icon;

    /**
     * 角色名称
     */
    @Schema(description = "角色名称")
    private String name;

    /**
     * 备注
     */
    @Schema(description = "备注")
    private String remark;

    /**
     * 启用状态
     */
    @Schema(description = "启用状态")
    private Boolean enable;

    /**
     * 角色编码
     */
    @Schema(description = "角色编码")
    private String code;

    /**
     * 分组用
     */
    @Schema(hidden = true)
    private Long userId;
}